package lab01;

    public class Test11 {
        public static void main(String[] args) {
            int j = 0 ;
            for (int a = 2; a <= 100; a++) {
                for (int i = 2; i <= a; i++) {
                    if (a % i == 0 && i != a) {
                        break;
                    } else if (i == a) {
                        System.out.print(a + "\t");
                        j ++;
                        if(j % 5 == 0){
                            System.out.println();
                        }
                    }
                }
            }
        }
    }


